/*
 * 练习9：分别显示用float和double指数计数法所能表示的最大、最小数字。
 * PS:看这个题目半天看不懂，后来一看原版答案，才发现需要看看javadocs.
 * Display the largest and smallest numbers for both float and double in 
 * exponential notation.
 * JavaDocs: static float	MAX_VALUE 
 * JavaDocs: A constant holding the largest positive finite value of type float,
 * JavaDocs: ( 2-2^(-23) )·2^127.
 */
package chapter3_Operators;

import publicLibs.p;

public class E9_MaxMinNumberInFloatAndDouble {
	public static void main(String[] args) {
		Double maxD = java.lang.Double.MAX_VALUE;
		p.p( "max double Number in exponential notation:\r\n" + maxD );
		Double minD = java.lang.Double.MIN_VALUE;
		p.p( "min double Number in exponential notation:\r\n" + minD );
		
		float maxF = java.lang.Float.MAX_VALUE;
		p.p( "max float Number in exponential notation:\r\n" + maxF );
		float minF = java.lang.Float.MIN_VALUE;
		p.p( "min float Number in exponential notation:\r\n" + minF );
	}

}
